package com.woniuxy.health.report.web;

import com.woniuxy.health.commons.entity.Report;
import com.woniuxy.health.report.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("report")
public class ReportController {

    @Autowired
    private ReportService reportService;

    @GetMapping("find_report")
    public Report findReport(@RequestBody String order_no,@RequestBody String user_name){
        Report result = reportService.findIdByNoAndName(order_no, user_name);
        return result;
    }

}
